/* 自动滚动容器样式 */
.auto-scroll-container {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  background-color: #fff;
}

.auto-scroll-wrapper {
  position: relative;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.auto-scroll-item {
  position: relative;
  height: 300px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  border-left: 3px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auto-scroll-item h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 15px;
}

.auto-scroll-item h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.auto-scroll-item p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* 服务卡片轮播 */
.services-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.services-cards {
  display: flex;
  transition: transform 0.5s ease;
  margin: 0 -10px;
}

.service-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
  height: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(228, 30, 38, 0.2);
}

.service-card .img-placeholder {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-control {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: #c41920;
  transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .service-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .auto-scroll-container {
    height: 350px;
  }
  
  .auto-scroll-item {
    height: 350px;
    padding: 20px;
  }
  
  .service-card {
    flex: 0 0 calc(100% - 20px);
  }
}